package com.dataseek.iot.mqtt.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author cc
 * @Title: 报警消息vo
 * @Description: 报警消息vo
 * @date 2021/11/1011:04 下午
 * @since 1.0
 */
@Data
@ApiModel("消息")
public class MessageInfo implements Serializable {

    @ApiModelProperty(name = "消息ID")
    private String messageId;

    @ApiModelProperty(name = "设备ID")
    private String deviceId;

    @ApiModelProperty(name = "消息")
    private String message;

    @ApiModelProperty(name = "毫秒时间戳")
    private long timestamp;

    @ApiModelProperty(name = "属性列表")
    private String properties;

    @ApiModelProperty(name = "状态标识")
    private boolean success;

    @ApiModelProperty(name = "失败code")
    private String code;
}
